﻿using RuoVea.ExDto;

namespace RuoVea.OmiApi.Article.Service.Dto;
/// <summary>
/// 
/// </summary>
public class TagParam : PageParam
{
    /// <summary>
    /// 
    /// </summary>
    public long UserId { get; set; }
    /// <summary>
    /// 标签名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 标签别名(URL友好格式)
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 
    /// </summary>
    private int _currentPage;
    /// <summary>
    /// 
    /// </summary>
    public int CurrentPage
    {
        get { return _currentPage; }
        set
        {
            _currentPage = value;
            base.PageNo = value;
        }
    }
}

/// <summary>
/// 
/// </summary>
public class TagDto
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long Id { get; set; }
    /// <summary>
    /// 标签名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 标签别名(URL友好格式)
    /// </summary>
    public string Code { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int Sort { get; set; } = 10;
    
    /// <summary>
    /// 备注
    /// </summary>
    public string Remark { get; set; }
}